package com.qdlc.p2p.dal.model;

import com.qdlc.p2p.dal.dto.AdditionalMovieTicketRule;
import org.springframework.beans.BeanUtils;

/**
 * Created by liaoxiangkai on 2015/11/27.
 */
public class AdditionalMovieTicketRuleModel extends AdditionalMovieTicketRule {
    //搜索框输入字符串
    private String searchName;
    //修改者姓名
    private String modifierName;
    //创建者姓名
    private String creatorName;
    //当前页
    private int page;
    //每页记录数
    private int rows;

    public String getSearchName() {
        return searchName;
    }

    public void setSearchName(String searchName) {
        this.searchName = searchName;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    /**
     * 用父类实例化model
     * @param additionalDrawLotteryRule
     * @return
     */
    public static AdditionalMovieTicketRuleModel instance(AdditionalMovieTicketRule additionalDrawLotteryRule) {
        AdditionalMovieTicketRuleModel model = new AdditionalMovieTicketRuleModel();
        BeanUtils.copyProperties(additionalDrawLotteryRule, model);
        return model;
    }
}
